/**
 * Copyright (C) 2016 Juno Inc., All Rights Reserved.
 */
package com.jyl.designPattern.creational.prototype;

/**
 *
 * @author Long, E-mail:jyl0401@163.com
 * @date 2016年7月19日 下午2:16:41
 */
public class Prototype implements Cloneable{

	private String name;
    
    public Object clone(){
        try {
            return super.clone();
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public String getName() {
        return this.name;
    }
}
